package com.pdstudio.carrecom.ui.activity;

import com.pdstudio.carrecom.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 一键呼叫
 * 类: ActivityCall <br>
 * 描述: TODO <br>
 * 作者: xiangzhaoyu  <br>
 * 时间: 2015-5-18 上午11:15:42
 */
public class ActivityCall extends Activity {

	private Button btncall;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_call);

		InitialView();
	}

	private void InitialView(){
		btncall=(Button)findViewById(R.id.call_server);
		btncall.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent();

				intent.setAction("android.intent.action.CALL");

				intent.setData(Uri.parse("tel:"+522));

				startActivity(intent);
			}});
	}
	
}
